class CreateBlogs < ActiveRecord::Migration
  def self.up
    create_table :blogs do |t|
      t.column :user_id, :integer
      t.column :about, :string
      t.column :custom, :string
      t.column :entries_per_page, :integer, :default => 10
      t.column :recent_entries, :integer, :default => 10
      t.column :recent_comments, :integer, :default => 10
      t.column :title, :string, :default => "my blog"
      t.column :subtitle, :string, :default => "my another blog"
      t.column :abstract_length, :integer, :default => 100
    end
  end

  def self.down
    drop_table :blogs
  end
end
